
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <Exception>
#include "stack_int.h"

IntStack::IntStack(int size)
{
	if (0 == size) {
        printf("Error: size is zero in %s.%s.", __FILE__, __func__);
		exit(1);
	}
	head = malloc(size);
	tail = head;
}

IntStack::~IntStack()
{
    free(tail);
	head = NULL;
	tail = NULL;
}

